﻿using System;
using System.Collections.Generic;
using System.Text;
using DBService;

namespace RXCourt
{
    public class CourtFactory
    {
       
      
        public static ICourt GetCourt(string fydm,IDBService dbService,string conStr)
        {
            ICourt iCourt = null;
            switch (fydm.Trim().ToLower())
            {
                case "lzzylw":
                case "2760":
                    iCourt= new LZZYLW(dbService, conStr);
                    iCourt.SetCurrentFYDM("2760");
                    break;
                default:
                    iCourt = new STANDARD(dbService, conStr);
                    iCourt.SetCurrentFYDM("2750");
                    break;
            }
            return iCourt;
           
        }

    }
}
